package com.indexingsystem.boss.entity;

import java.io.Serializable;

public class Articles implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    private String resId;

    private String articleType;

    private String columnes;

    private String subTitle;

    private String author;

    private String translator;

    private String cip;

    private String keyword;

    private String page;

    private Integer startPage;

    private Integer endPage;

    private String description;

    private String painter;

    private String source;

    private String pageScope;

    private String pages;

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId == null ? null : resId.trim();
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType == null ? null : articleType.trim();
    }

    public String getColumnes() {
        return columnes;
    }

    public void setColumnes(String columnes) {
        this.columnes = columnes == null ? null : columnes.trim();
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle == null ? null : subTitle.trim();
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author == null ? null : author.trim();
    }

    public String getTranslator() {
        return translator;
    }

    public void setTranslator(String translator) {
        this.translator = translator == null ? null : translator.trim();
    }

    public String getCip() {
        return cip;
    }

    public void setCip(String cip) {
        this.cip = cip == null ? null : cip.trim();
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword == null ? null : keyword.trim();
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page == null ? null : page.trim();
    }

    public Integer getStartPage() {
        return startPage;
    }

    public void setStartPage(Integer startPage) {
        this.startPage = startPage;
    }

    public Integer getEndPage() {
        return endPage;
    }

    public void setEndPage(Integer endPage) {
        this.endPage = endPage;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public String getPainter() {
        return painter;
    }

    public void setPainter(String painter) {
        this.painter = painter == null ? null : painter.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getPageScope() {
        return pageScope;
    }

    public void setPageScope(String pageScope) {
        this.pageScope = pageScope == null ? null : pageScope.trim();
    }

    public String getPages() {
        return pages;
    }

    public void setPages(String pages) {
        this.pages = pages == null ? null : pages.trim();
    }
    

	@Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((articleType == null) ? 0 : articleType.hashCode());
        result = prime * result + ((author == null) ? 0 : author.hashCode());
        result = prime * result + ((cip == null) ? 0 : cip.hashCode());
        result = prime * result + ((columnes == null) ? 0 : columnes.hashCode());
        result = prime * result + ((description == null) ? 0 : description.hashCode());
        result = prime * result + ((endPage == null) ? 0 : endPage.hashCode());
        result = prime * result + ((keyword == null) ? 0 : keyword.hashCode());
        result = prime * result + ((page == null) ? 0 : page.hashCode());
        result = prime * result + ((pageScope == null) ? 0 : pageScope.hashCode());
        result = prime * result + ((pages == null) ? 0 : pages.hashCode());
        result = prime * result + ((painter == null) ? 0 : painter.hashCode());
        result = prime * result + ((resId == null) ? 0 : resId.hashCode());
        result = prime * result + ((source == null) ? 0 : source.hashCode());
        result = prime * result + ((startPage == null) ? 0 : startPage.hashCode());
        result = prime * result + ((subTitle == null) ? 0 : subTitle.hashCode());
        result = prime * result + ((translator == null) ? 0 : translator.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        Articles other = (Articles)obj;
        if (articleType == null)
        {
            if (other.articleType != null) return false;
        }
        else if (!articleType.equals(other.articleType)) return false;
        if (author == null)
        {
            if (other.author != null) return false;
        }
        else if (!author.equals(other.author)) return false;
        if (cip == null)
        {
            if (other.cip != null) return false;
        }
        else if (!cip.equals(other.cip)) return false;
        if (columnes == null)
        {
            if (other.columnes != null) return false;
        }
        else if (!columnes.equals(other.columnes)) return false;
        if (description == null)
        {
            if (other.description != null) return false;
        }
        else if (!description.equals(other.description)) return false;
        if (endPage == null)
        {
            if (other.endPage != null) return false;
        }
        else if (!endPage.equals(other.endPage)) return false;
        if (keyword == null)
        {
            if (other.keyword != null) return false;
        }
        else if (!keyword.equals(other.keyword)) return false;
        if (page == null)
        {
            if (other.page != null) return false;
        }
        else if (!page.equals(other.page)) return false;
        if (pageScope == null)
        {
            if (other.pageScope != null) return false;
        }
        else if (!pageScope.equals(other.pageScope)) return false;
        if (pages == null)
        {
            if (other.pages != null) return false;
        }
        else if (!pages.equals(other.pages)) return false;
        if (painter == null)
        {
            if (other.painter != null) return false;
        }
        else if (!painter.equals(other.painter)) return false;
        if (resId == null)
        {
            if (other.resId != null) return false;
        }
        else if (!resId.equals(other.resId)) return false;
        if (source == null)
        {
            if (other.source != null) return false;
        }
        else if (!source.equals(other.source)) return false;
        if (startPage == null)
        {
            if (other.startPage != null) return false;
        }
        else if (!startPage.equals(other.startPage)) return false;
        if (subTitle == null)
        {
            if (other.subTitle != null) return false;
        }
        else if (!subTitle.equals(other.subTitle)) return false;
        if (translator == null)
        {
            if (other.translator != null) return false;
        }
        else if (!translator.equals(other.translator)) return false;
        return true;
    }

    public Articles() {
		super();
	}

	public Articles(String resId, String articleType, String columnes, String subTitle, String author,
			String translator, String cip, String keyword, String page, Integer startPage, Integer endPage,
			String description, String painter, String source, String pageScope, String pages) {
		super();
		this.resId = resId;
		this.articleType = articleType;
		this.columnes = columnes;
		this.subTitle = subTitle;
		this.author = author;
		this.translator = translator;
		this.cip = cip;
		this.keyword = keyword;
		this.page = page;
		this.startPage = startPage;
		this.endPage = endPage;
		this.description = description;
		this.painter = painter;
		this.source = source;
		this.pageScope = pageScope;
		this.pages = pages;
	}

	@Override
	public String toString() {
		return "Articles [resId=" + resId + ", articleType=" + articleType + ", columnes=" + columnes + ", subTitle="
				+ subTitle + ", author=" + author + ", translator=" + translator + ", cip=" + cip + ", keyword="
				+ keyword + ", page=" + page + ", startPage=" + startPage + ", endPage=" + endPage + ", description="
				+ description + ", painter=" + painter + ", source=" + source + ", pageScope=" + pageScope + ", pages="
				+ pages + "]";
	}
    
    
}